package builder;

import javax.xml.soap.Text;

public class Main {
    public static void main(String[] args) {
        System.out.println("TextBuilder");
        TextBuilder textBuilder = new TextBuilder();
        Director director = new Director(textBuilder);
        director.construct();
        String result = textBuilder.getResult();
        System.out.println(result);

        System.out.println("HtmlBuilder");
        HtmlBuilder htmlBuilder = new HtmlBuilder();
        Director director1 = new Director(htmlBuilder);
        director1.construct();
        String result1 = htmlBuilder.getResult();
        System.out.println(result1);
    }
}
